home *** CD-ROM | disk | FTP | other *** search
/ Windows Magazine WinPak Multimedia CD / Windows Magazine WinPak Multimedia CD.iso / wmlaunch.txt < prev   
Text File  |  1995-04-06  |  3KB  |  88 lines

  1. While *WINDOWS Magazine* has gone to great lengths to make sure 
  2. that this file's description of WMLAUNCH.DLL and WMLAUNCH.EXE 
  3. is as accurate as possible, we do not guarantee that any 
  4. or all of the functions described 
  5. will work properly on all systems all the time, and therefore 
  6. offer the advice "as-is" without warranty or guarantee as to 
  7. merchantability or suitability to task. Your use of this 
  8. software is at your own risk.
  9.  
  10. If you aren't sure of the suitability to task of software 
  11. or advice on this CD-ROM, or are uncertain about your 
  12. ability to install and operate it, seek additional 
  13. advice before proceeding. 
  14.  
  15. In any case, CMP Publications Inc., its employees or 
  16. freelancers are not responsible for any injury, 
  17. damage or loss resulting from your use of this disk 
  18. or the information it contains.
  19.  
  20. Using the WMLAUNCH.DLL
  21. The routine call is also named WMLaunch. It takes
  22. just one parameter: a null-terminated string which is the
  23. full pathname for the file (drive, path and filename).
  24. For example:
  25.  
  26. WMLaunch ("C:\mydir\myfile.xxx")
  27.  
  28. The WMLaunch routine finds the application associated
  29. with that file extension in WIN.INI and launches it.
  30. The app is launched directing it to open the file. If
  31. an error occurs it is reported to the user in a message box.
  32.  
  33. A return value greater than 32 is a success, and in that
  34. case the return value is the instance handle of the launched
  35. application. Any other return is a failure. The defined error
  36. codes are:
  37.  
  38. 0 The system is out of memory, the executable file was corrupt
  39.     or relocations were invalid.
  40.  
  41. 2 Can't find the file.
  42.  
  43. 3 Can't find the path (directory) of the file.
  44.  
  45. 5 There is a sharing error or network protection error with the file.
  46.  
  47. 6 A DLL designed for a future version of Windows is trying to run.
  48.  
  49. 8 There isn't enough system memory to run the application.
  50.  
  51. 10 The application won't run on this Windows version.
  52.  
  53. 11 The application .EXE file can't be read (it is either a non-Windows
  54.     app or it is corrupt).
  55.  
  56. 12 The application was designed for a different operating system.
  57.  
  58. 13 The application is a DOS 4 app.
  59.  
  60. 14 The application is a real-mode app.
  61.  
  62. 16 Windows can't run multiple instances of the app (because
  63.     of the size of its data segment).
  64.  
  65. 19 The executable file is compressed and must be decompressed before
  66.     it can run.
  67.  
  68. 20 A DLL that is trying to run is corrupt.
  69.  
  70. 21 The application requires Windows 32-bit extensions.
  71.  
  72. 31 There is no association in WIN.INI for this type of file.
  73.  
  74. WMLAUNCH.EXE
  75. You can run this app with a full filename on the command line.
  76.  
  77. For example:
  78. WMLAUNCH C:\MYDIR\MYFILE.XXX
  79.  
  80. The WMLaunch app will find the application associated with the 
  81. file extension in WIN.INI and launch the app, directing it to 
  82. open the file. If an error occurs, WMLaunch reports the error
  83. to the user in a message box.
  84.  
  85.  
  86. The WMLaunch app exits after launching the app (and reporting errors,
  87. if any). WMLaunch doesn't have any windows of its own (that is, the
  88. user will never see any evidence that WMLaunch is running).